package com.psychologyCommunity.Community.quartz;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import java.util.Date;

public class AlphaJob implements Job {
    //一个任务
    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        System.out.println(Thread.currentThread().getName()+"execute a quartz job."+new Date());
    }
}
